package com.kfm.springboot.controller;

import com.kfm.springboot.mapper.AccountMapper;
import com.kfm.springboot.model.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AccountController {

    @Autowired
    private AccountMapper mapper;

    @RequestMapping("/account")
    public Account getAccount(Integer id) {
        return mapper.selectById(id);
    }
}
